Platform Explorer / Nuxeo Platform 2023.9

Component org.nuxeo.drive.adapters.hierarchy.userworkspace

Requirements

Resolution Order

193
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.drive.adapters.hierarchy.userworkspace"
  version="1.0">

  <require>org.nuxeo.drive.adapters</require>

  <extension target="org.nuxeo.drive.service.FileSystemItemAdapterService"
    point="topLevelFolderItemFactory">
    <topLevelFolderItemFactory
      class="org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceTopLevelFactory">
      <parameters>
        <parameter name="folderName">Nuxeo Drive</parameter>
        <parameter name="syncRootParentFactory">userWorkspaceSyncRootParentFactory
        </parameter>
      </parameters>
    </topLevelFolderItemFactory>
  </extension>

  <extension target="org.nuxeo.drive.service.FileSystemItemAdapterService"
    point="fileSystemItemFactory">

    <!-- Synchronization root parent factory: order before the "userWorkspaceSyncRootFactory"
      that has an order of 40 and before the "defaultFileSystemItemFactory" that
      has an order of 50 -->
    <fileSystemItemFactory name="userWorkspaceSyncRootParentFactory"
      order="30"
      class="org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceSyncRootParentFactory">
      <parameters>
        <parameter name="folderName">My synchronized folders</parameter>
      </parameters>
    </fileSystemItemFactory>

    <!-- Synchronization root factory: order before the "defaultFileSystemItemFactory"
      that has an order of 50 -->
    <fileSystemItemFactory name="userWorkspaceSyncRootFactory"
      order="40" facet="DriveSynchronized"
      class="org.nuxeo.drive.hierarchy.userworkspace.factory.UserWorkspaceSyncRootFactory">
      <parameters>
        <parameter name="syncRootParentFactory">userWorkspaceSyncRootParentFactory
        </parameter>
      </parameters>
    </fileSystemItemFactory>

  </extension>

</component>